package com.my.service;

import com.baomidou.mybatisplus.service.IService;
import com.my.bean.Production;
import com.my.bean.ResultPage;
import com.my.bean.VoPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产康可预约 服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2018-08-25
 */
public interface ProductionService extends IService<Production> {


    //查询所有
    List<Production> selectProduction();

    //实现分页查询
    public ResultPage<Production> selectMyPage(Map map, String stat, VoPage voPage, long areaid,boolean admin);


    //修改 可预约变成不可预约
    List<Production> selectProductionById(Long id);
    String  updateProductionState(Long id);

    //修改 不可预约变成可预约
    List<Production> selectProductionById2(Long id);
    String updateProductionState2(Long id);

    //根据状态查询
    List<Production> selectByAppointmentId(Long id);

    //根据房间id查询那个房间有哪些项目
    ResultPage<Production> findProjectByHomeId(Long homeId, VoPage voPage, long areaid,boolean admin);


    ResultPage<Production> findProjectByHomeId(VoPage voPage, long areaid,boolean admin);


}

